import request from '@/utils/request'
import type { UserInfo } from '@/types/api/user'

/**
 * 获取用户信息
 * @returns 用户信息
 */
export const getUserInfo = () => {
  return request<UserInfo>({
    url: '/user/info',
    method: 'get'
  })
}
